{include file="admin@public/header"/}
<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "blue";
try{
  var host = window.location.host;
    var domainDot = host.indexOf('.');
    var domain = host.substring(domainDot + 1,host.length);
    document.domain = domain;
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
  /* Act on the event */
  if(event.keyCode === 116 && event.ctrlKey){
    var defaultPage = Public.getDefaultPage();
    var href = defaultPage.location.href.split('?')[0] + '?';
    var params = Public.urlParam();
    params['version'] = Date.parse((new Date()));
    for(i in params){
      if(i && typeof i != 'function'){
        href += i + '=' + params[i] + '&';
      }
    }
    defaultPage.location.href = href;
    event.preventDefault();
  }
});
</script>
<style>

.system-parameter-wrapper{
    background-color: white;
    overflow: auto;
    padding: 0px !important;
    padding-bottom: -11px;
    position: absolute;
    top: 11px;
    left: 11px;
    right: 11px;
    bottom: 11px;
}

.para-wrapper{font-size:14px; }
.para-wrapper .para-item h3{font-size:14px;font-weight:bold;margin-bottom:10px;}

.mod-form-rows .label-wrap { width:260px; }
#content3 .mod-form-rows .label-wrap { width:100px; }
#content3 .mod-form-rows td{
  border:1px solid #DDD;
  padding: 5px 10px;
}

.base { width:160px !important; }
.para-item .ui-input{width:220px;font-size:14px;}

.subject-para .ui-input{width:40px;}

.code-length .ui-spinbox-wrap{margin-right:0;}

.books-para input{margin-top:-3px;}

#currency{width: 68px;}
.ui-droplist-wrap .list-item {font-size:14px;}

.tablabel {
    font-weight: bold;
    color: #8e8e8e;
    font-size: 16px;
    display: block;
    padding: 0.5px 30px 10px 30px;
    width: 100px;
}
#three .price-label {
  width: 150px;

}
label:hover {
  cursor: pointer;
}
section {
  display: none;
}
#tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3 {
  display: block;
}
input:checked + div label {
    color: #48bfea;
    border-bottom: 2px solid #48bfea;
}
.hl{
    width: 90%;
    margin-top: 12px;
    margin-left: 26px;
    height: 2px;
    background-color: #DDD;
}

#one.clicked{
  margin-left: 26px;
  background-position: -25px 0px;
}

#one{
  margin-left: 26px;
  background-position: 0px 0px;
}

#two.normal{
  margin-left: 130px;
  background-position: -50px 0px;
}
#two.clicked{
  margin-left: 130px;
  background-position: -75px 0px;
}

#three.normal{
  margin-left: 150px;
  background-position: -100px 0px;
}
#three.clicked{
  margin-left: 150px;
  background-position: -125px 0px;
}
.operateBtn {
  margin: 0 10px 0 10px;
}
.operateBtn:hover {
  color: #48bfea;
  margin: 0 10px 0 10px;
  border-bottom: 1px solid #48bfea;
  cursor: pointer;
}
.tx-center {
  text-align: center;
}

.backgroundTabs{
    background: url(/css/img/blueandwhite.png) no-repeat;
    background-position: -25px 0px;
    width: 25px;
    height: 22px;
    display: inline-block;
    margin-top: 34px;
}

.mod-form-rows td{
  border:1px solid #DDD;
  padding: 5px 20px;
}

.mod-form-rows{
  border-collapse:collapse;
}

.td1{
  width: 200px;
}

.td2{
    width: 220px;
    text-align: center;
    padding: 5px 10px !important;
}

.td3{
  width: 1000px;
}

#content3 .td1{
  width: 60px;
}

#content3 .td2{
    width: 100px;
    text-align: center;
    padding: 5px 10px !important;
}

#content3 .td3{
  width: 540px;
}

#content1, #content2, #content3{
  margin-top: 22px;
  margin-left: 26px;
}

.tdtitle{
  text-align: center;
}
.table-tips {
  margin-bottom: 20px;
  color: #48bfea;
  font-size: 16px;
}
.system-parameter-wrapper .ui-btn{
    margin-top: 40px;
    margin-left: 26px;
    margin-bottom: 15px;
    background-color: #ff8a00 !important;
    border: 1px solid #ec8000;
}
.chk_blue input {
    display: inline-block;
    position: absolute;
    width: 16px;
    height: 16px;
    cursor: pointer;
    left: 0;
    top: 1px;
    opacity: 0;
}
.chk_blue {
    position: relative;
    font-size: 12px;
    background-position-y: center;
}
.chk_blue label {
  padding-left: 5px;
}
/* new.gif图标 */
.newMenuIcon{display: inline-block;width: 30px;height: 16px;background: url(/css/img/new.gif);}
td.ui_icon {vertical-align: middle;}
.ui_icon img.ui_icon_bg {width: auto;height: auto;}

.forbidden-date-desc {
  color: #999;
  margin-top: -8px;
}

#scmWeb,
#scmApp {
  margin-right: 5px;
}
.price-higher-title {font: bold 20px '微软雅黑';}
</style>
<form action="" id="formadd" name="formadd" enctype="multipart/form-data" onsubmit="return false">
<div class="para-item" id="sx">
  <ul class="mod-form-rows" id="establish-form">
    <li class="row-item">
      <div class="label-wrap base">
        <label for="companyName">模板类别：</label>
      </div>
      <div class="ctn-wrap">
        <select class="ui-input" name="templateType"  id='templateType' style="height: 30px;width: 233px;">
          <option name="valMethods"  value ="1">销售单</option>
          <option name="valMethods"  value ="2">购货订单</option>
        </select>
          <span id="companyName"></span>
      </div>
    </li>
    <li class="row-item">
      <div class="label-wrap base">
        <label for="companyAddress">模板文件:</label>
      </div>
        <input type="file" name="file[]" id="file"  multiple="multiple" />
    </li>
    <li class="row-item">
      <div class="label-wrap base">
        <label for="companyTel">模板名称：</label>
      </div>
      <div class="ctn-wrap">
        <input type="text" name="templateName" class="ui-input" id="templateName" name='templateName' />
      </div>
    </li>
    <li class="row-item">
      <div class="label-wrap base">
        <label for="companyFax">模板描述：</label>
      </div>
      <div class="ctn-wrap">
        <input type="text" id="templateDesribe" name="templateDesribe"  class="ui-input" id='templateDesribe' />
      </div>
    </li>
    <li class="row-item">
      <div class="label-wrap base">
        <label for="postcode" >模板编码：</label>
      </div>
      <div class="ctn-wrap">
        <input type="text" name="postcode" class="ui-input" id='postcode'  />
      </div>
    </li>
    <li class="row-item">
      <div class="label-wrap base">
        <label for="requiredCheckStore">默认模板：</label>
      </div>
      <div class="ctn-wrap">
        <input type="checkbox" name="templateDefault" id='templateDefault' checked="true">
      </div>
    </li>
    <input type="hidden" name="hidden1" id="hidden1" value="1">
  </ul>
  </div>
  
  <!--        <li class="row-item">
      <div class="label-wrap">
        <label>金额小数位：</label>
      </div>
      <div class="ctn-wrap">
        <input type="text" name="amountPlaces" id="amountPlaces" class="ui-input" />
      </div>
    </li>-->
    <input type="submit" name="tj" id="tj" value="提交" onclick="addte()">
    </form>
    <script type="text/javascript">
      function addte(){
        alert('1');
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                  //var index = layer.getFrameIndex(window.name); //先得到当前iframe层的索引
          parent.layer.close(index); //再执行关闭   
        
      }
    </script>
{include file="admin@public/footer"/}
